package com.thon.service.user;

import java.util.Date;

import com.thon.dao.util.Page;
import com.thon.entity.user.Message;
import com.thon.entity.user.User;


public interface MessageService {
	
	public Message getMessage(Integer id);
	
	public void updateMessage(Message message);
	
	public Page<Message> pageMessageTo(int userId,int pageNo,int pageSize);
	
	public void deleteMessage(int messageId);
	
	public Long countUnreadMessage(Integer userId);
	
	public void sendMessage(User from,User to,String content);
}
